package com.example.logistics_manage.service.serviceImpl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.logistics_manage.mapper.CarrierMapper;
import com.example.logistics_manage.pojo.Carrier;
import com.example.logistics_manage.service.ICarrierService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CarrierService extends ServiceImpl<CarrierMapper, Carrier> implements ICarrierService {
    @Autowired
    CarrierMapper carrierMapper;
    @Override
    public List<Carrier> selectAll() {
       return carrierMapper.selectAll();
    }

    @Override
    public List<Carrier> selectCompany(Carrier carrier) {
        return carrierMapper.selectCompany(carrier);
    }

    @Override
    public void updateCarrier(Carrier carrier) {
        int i = carrierMapper.updateById(carrier);
    }


}
